package gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;

public class MyFrame4 extends JFrame implements ActionListener{
	private static final long serialVersionUID = 1L;
	private JScrollPane pane1;
	private JScrollPane pane2;
	private JScrollPane pane3;
	private JPanel pane4;
	
	private JTextArea textJLabel;
	
	public MyFrame4(){
		this.setSize(600,650);
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setTitle("QQ cheap copy");
		
		init();
		addEvent();
		this.setVisible(true);
	}
	
	private void init(){
		this.setLayout(null);
		textJLabel = new JTextArea();
		pane1 = new JScrollPane(textJLabel);
		pane2 = new JScrollPane();
		pane3 = new JScrollPane();
		pane4 = new JPanel();
		
		pane1.setBounds(0, 0, 450, 500);
		pane2.setBounds(450, 0, 150, 650);
		pane3.setBounds(0, 500, 350, 150);
		pane4.setBounds(350, 500, 100, 150);
		
		
		
		
		
		this.add(pane1);
		this.add(pane2);
		this.add(pane3);
		this.add(pane4);
	}
	private void addEvent(){
		for(int i=0; i<100; i++)
		textJLabel.append("jason\n");
	}
	
	
	public static void main(String[] args) {
		new MyFrame4();
	}

	public void actionPerformed(ActionEvent e) {

	}

}
